package cangjie.lang;

public class LibraryLoader {
    public static void loadLibrary(String libName) {
        String originalString = libName;
        String modifiedString = originalString.replace("lib", "").replace(".so", "");
        System.loadLibrary(modifiedString);
        StringBuilder sb = new StringBuilder(libName);
        nativeLoadCJLibrary(sb.toString());
    }
    public static native void nativeLoadCJLibrary(String libName);
}
